#ifndef TRANSFORMERCONTENTTHREADPOOL_HPP_3
#define TRANSFORMERCONTENTTHREADPOOL_HPP_3

#include "transContentIThreadRun.hpp"

class TransContentThreadPool{
	private:
		int mThreadCount;
		int mState;
		int mInterval;
		static TransContentThreadPool* _instance;
		pthread_t* threads;
		TransContentIThreadRouter* taskList;
		pthread_mutex_t poolMutex;
		pthread_cond_t poolCondtion;
	public:
		
		static TransContentThreadPool* getInstance();
		static void releaseInstance();
		int start(TransContentIThreadRouter task);
		
	private:
		int createThreads();
		int destroyThreads();
		TransContentThreadPool();
		~TransContentThreadPool();
}
#endif //TRANSFORMERCONTENTTHREADPOOL_HPP_3
